package com.zhixi.controller;

import com.zhixi.service.DubboTestService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangzhixi
 * @version 1.0
 * @description
 * @date 2024-02-19 18:58
 */
@RestController
public class DubboController {

    @DubboReference
    private DubboTestService dubboTestService;
    @GetMapping("/sayHello")
    public String sayHello(@RequestParam String name) {
        return dubboTestService.sayHello(name);
    }
}
